﻿using System.Collections.Generic;

namespace ElWsDemo.WebService.IService.Request
{
    /// <summary>
    /// EL数据
    /// </summary>
    public class UploadElResultRequest
    {
        /// <summary>
        /// 组件条码
        /// </summary>
        public string BarCode { get; set; }

        /// <summary>
        /// 检测结果（OK/NG）
        /// </summary>
        public string Result { get; set; }

        /// <summary>
        /// EL图片
        /// </summary>
        public string Image { get; set; }

        /// <summary>
        /// 异常位置
        /// </summary>
        public List<ElProblem> Problems { get; set; }
    }

    /// <summary>
    /// EL异常
    /// </summary>
    public class ElProblem
    {
        /// <summary>
        /// 位置（行）
        /// </summary>
        public int Row { get; set; }

        /// <summary>
        /// 位置（列）
        /// </summary>
        public int Column { get; set; }

        /// <summary>
        /// 异常代码
        /// </summary>
        public string Code { get; set; }
    }
}